import request from '@/utils/request'

// 查询实时数据列表
export function listDispatchRealTimeData(query) {
  return request({
    url: '/dispatch/pipe/dispatchRealTimeData/list',
    method: 'get',
    params: query
  })
}

// 查询实时数据详细
export function getDispatchRealTimeData(realTimeDataId) {
  return request({
    url: '/dispatch/pipe/dispatchRealTimeData/' + realTimeDataId,
    method: 'get'
  })
}

// 新增实时数据
export function addDispatchRealTimeData(data) {
  return request({
    url: '/dispatch/pipe/dispatchRealTimeData',
    method: 'post',
    data: data
  })
}

// 修改实时数据
export function updateDispatchRealTimeData(data) {
  return request({
    url: '/dispatch/pipe/dispatchRealTimeData',
    method: 'put',
    data: data
  })
}

// 删除实时数据
export function delDispatchRealTimeData(realTimeDataId) {
  return request({
    url: '/dispatch/pipe/dispatchRealTimeData/' + realTimeDataId,
    method: 'delete'
  })
}
